package personal.wang.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @className: Header
 * @Description:
 * @Author: wangyifei
 * @Date: 2024/6/4 11:08
 */
public class Header {
    private static Logger logger = LoggerFactory.getLogger(Header.class);
    private int version ;
    private int length ;
    private int contentLength ;
    private String sessiongId ;
    private int flag ;
    public Header(int version , int length , int contentLength , String sessiongId , int flag){
        this.version = version ;
        this.length = length ;
        this.contentLength = contentLength ;
        this.sessiongId = sessiongId ;
        this.flag = flag ;
    }

    public int getContentLength() {
        return contentLength;
    }

    public void setContentLength(int contentLength) {
        this.contentLength = contentLength;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getSessiongId() {
        return sessiongId;
    }

    public void setSessiongId(String sessiongId) {
        this.sessiongId = sessiongId;
    }

    @Override
    public String toString() {
        return "Header{" +
                "version=" + version +
                ", length=" + length +
                ", sessiongId='" + sessiongId + '\'' +
                ", flag=" + flag +
                '}';
    }
}
